<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="directory-boxshadow-dialog">
        <div class="directory-boxshadow-dialog-box">
        </div>
        <div class="vip-limited-time-offer-box">
            <div class="vip-limited-time-offer-content">
                <img class="limited-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/vip-limited-close.png">
                <div class="limited-box">
                    <span class="limited-num">1111111111</span>
                    <span class="limited-quan"> 优惠劵</span>
                </div>
                <div class="limited-time-box">
                    <span class="time-hour">222222222222</span>
                    <span class="time-minite">333333333</span>
                    <span class="time-second">4444444</span>
                </div>
                <a class="limited-time-btn" href="https://mall.csdn.net/vip"
                    data-report-click="{&quot;spm&quot;:&quot;1001.2101.3001.9621&quot;}"
                    data-report-query="spm=1001.2101.3001.9621">55555555</a>
            </div>
        </div>
    </div>

    <script>
        const toDom = (sourceDoc) => {
            const doc = {}
            const fn = (sourceDoc, doc) => {
                if(sourceDoc.length > 0) {
                    
                }
                // if(sourceDoc.nodeName === '#text') {
                //     doc.nodeName = '#text'
                //     doc.textContent = sourceDoc.textContent
                //     return
                // }
                // if(!doc.childNodes ) {
                //     doc.childNodes = []
                // }
                // if(sourceDoc.childNodes.length > 0) {
                //     doc.childNodes = []
                // }
            }
            fn(sourceDoc, doc)
        }

    </script>
</body>

</html>